.class public Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;
.super Lcom/wqmobile/sdk/protocol/cmd/a;


# instance fields
.field private d:[B

.field private e:[B

.field private f:[B


# direct methods
.method public constructor <init>()V
    .locals 2

    const/16 v1, 0x20

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;-><init>()V

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/d;->a:Lcom/wqmobile/sdk/protocol/cmd/d;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/cmd/d;->b()B

    move-result v0

    iput-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->b:B

    const/16 v0, 0x3f

    iput-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->a:B

    const/4 v0, 0x2

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->d:[B

    new-array v0, v1, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->e:[B

    new-array v0, v1, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->f:[B

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->d:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->e:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->f:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method


# virtual methods
.method public final a(II)V
    .locals 3

    const/4 v2, 0x1

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->d:[B

    aput-byte v2, v0, v1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->d:[B

    aput-byte v1, v0, v2

    return-void
.end method

.method public final b(Ljava/lang/String;)V
    .locals 3

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->e:[B

    array-length v1, v1

    if-le v0, v1, :cond_0

    new-instance v0, Ljava/lang/Exception;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "The length of Publisher ID must be less than "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->e:[B

    array-length v2, v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->e:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->b([B)V

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->e:[B

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BLjava/lang/String;)I

    invoke-static {p1}, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->a(Ljava/lang/String;)Ljava/math/BigInteger;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->f:[B

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/cmd/b;->b([B)V

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Ljava/math/BigInteger;->toString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQHelloContent;->f:[B

    invoke-static {v1, v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BLjava/lang/String;)I

    return-void
.end method
